package teaching.interfacedemo;

/*
* 洗衣机接入智能家居
* 1.静态内部类 static
* */

public class WashMachine implements SmartHome {
    private int height;
    private int width;

    static class Roller{
        private static int rollerHeight;
        private static int rollerWidth;
        private static void runRoller(){
            System.out.println("洗衣机启动!");
        }
    }
    public void useRoller(){
        Roller.runRoller();
        Roller.rollerWidth  = 15;
    }

    @Override
    public void showYourFuntion() {
        System.out.println("我是洗衣机!");
    }

    @Override
    public boolean connection() {
        System.out.println("洗衣机已连接!");
        return false;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }
}
